//
//  PSFileListNode.h
//  photoSep
//
//  Created by David Michaeli on 05/10/12.
//  Copyright (c) 2012 David Michaeli. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSImage+Thumbnail.h"


@interface PSFileListNode : NSObject {
@private
    NSThread* _processingThread;
    double _processProgress;
    SEL _removeButtonSelector;
    SEL _setProgressSelector;
    NSString* _name;
    NSMutableArray* _childrenImages;
    id _removeButtonSource;
    id _selectorTarget;
    NSImage* _image;
    NSURL* _url;
}

@property (retain) id removeButtonSource;
@property (retain) id selectorTarget;
@property SEL removeButtonSelector;
@property SEL setProgressSelector;
@property double processProgress;
@property (retain, nonatomic) NSURL* url;
@property (retain, nonatomic) NSImage* image;
@property (retain, nonatomic) NSString* name;
@property (retain, nonatomic) NSMutableArray* childrenImages;
@property (retain) NSThread* processingThread;

- (id)initWithPath:(NSString*)filePath;
- (id)initWithName:(NSString*)name;
- (id)init;
- (NSComparisonResult)compare:(id)otherNode;
- (void)processingMainMethod;
- (void)setProgress:(NSNumber*)num;

@end
